package com.outsource.framework.model.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.outsource.framework.domain.Tinfosection;
import com.outsource.framework.model.repository.TinfosectionRepository;
import com.outsource.framework.model.services.TinfosectionService;

@Service
public class TinfosectionServiceImpl implements TinfosectionService{

	@Autowired
	TinfosectionRepository repository;

	@Override
	public List<Object[]> findByAllapps(String type) {
		// TODO Auto-generated method stub
		return repository.findByAllapps(type);
	}

	@Override
	public Tinfosection save(Tinfosection entity) {
		// TODO Auto-generated method stub
		return repository.save(entity);
	}

	@Override
	public Tinfosection getById(Integer id) {
		// TODO Auto-generated method stub
		return repository.getById(id);
	}

	@Override
	public void update(Tinfosection dto) {
		// TODO Auto-generated method stub
		repository.save(dto);
	}

	 
}
